<template>
  <div class="city-header">
    <span class="city-header-name">城市选择</span>
    <span class="iconfont city-back-icon" @click="comeback">&#xe624;</span>
  </div>
</template>

<script>
export default{
  name: 'CityHeader',
  methods: {
    comeback () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="stylus" scoped>
  .city-header
    position: relative
    height: .86rem
    line-height: .86rem
    text-align: center
    color: #ffffff
    font-size: .4rem
    background-color: #00bcd4;
    .city-header-name
      margin: 0 1rem
      text-align: center
    .city-back-icon
      position: absolute
      top: 0
      left: 0
      font-size: .4rem
      text-align: center
</style>
